package cn.stylefeng.guns.modular.myorder.service;

import cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult;
import cn.stylefeng.guns.modular.myorder.entity.Myorder;
import cn.stylefeng.guns.modular.myorder.pojo.request.MyorderRequest;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 订单管理 服务类
 *
 * @author zhu
 * @date 2021/09/25 18:20
 */
public interface MyorderService extends IService<Myorder> {

    /**
     * 新增
     *
     * @param myorderRequest
     * @author zhu
     * @date 2021/09/25 18:20
     */
    void add(MyorderRequest myorderRequest);

    /**
     * 删除
     *
     * @param myorderRequest
     * @author zhu
     * @date 2021/09/25 18:20
     */
    void del(MyorderRequest myorderRequest);

    /**
     * 编辑
     *
     * @param myorderRequest
     * @author zhu
     * @date 2021/09/25 18:20
     */
    void edit(MyorderRequest myorderRequest);

    /**
     * 查询详情
     *
     * @param myorderRequest
     * @author zhu
     * @date 2021/09/25 18:20
     */
    Myorder detail(MyorderRequest myorderRequest);

    /**
     * 获取列表
     *
     * @param myorderRequest
     * @return List<Myorder>
     * @author zhu
     * @date 2021/09/25 18:20
     */
    List<Myorder> findList(MyorderRequest myorderRequest);

    /**
     * 获取列表（带分页）
     *
     * @param myorderRequest
     * @return PageResult<Myorder>
     * @author zhu
     * @date 2021/09/25 18:20
     */
    PageResult<Myorder> findPage(MyorderRequest myorderRequest);

}